// PipeTableRecord.h: interface for the PipeTableRecord class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PIPETABLERECORD_H__907DFDAE_8456_457F_B847_F32744BAF1D1__INCLUDED_)
#define AFX_PIPETABLERECORD_H__907DFDAE_8456_457F_B847_F32744BAF1D1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Unit.h"

namespace PDMS
{
	namespace PDMSDBIF
	{
		class PipeTableRecord  
		{
		public:
			void SetID( unsigned long lID ){
				m_lID = lID;
			}
			
			void SetParentID( unsigned long lParentID ){
				m_lParentID = lParentID;
			}
			
			unsigned long GetID(){
				return m_lID;
			}
			
			unsigned long GetParentID(){
				return m_lParentID;
			}

		public:
			PipeTableRecord();
			virtual ~PipeTableRecord();
			void SetShopFlag( BOOL );
			void SetBuildFlag( BOOL );
			void SetPipeBore( LengthUnit );
			void SetPressure( PressureUnit );
			void SetCaseRef( const StdString& );
			void SetDescription( const StdString& );
			void SetFluRef( const StdString& );
			void SetFunction( const StdString& );
			void SetIspec( const StdString& );
			void SetMatRef( const StdString& );
			void SetPspec( const StdString& );
			void SetPurpose( const StdString& );
			void SetTspec( const StdString& );
			void SetTemperature( TemperatureUnit );
			void SetPtspec( const StdString& );

			BOOL GetShopFlag();
			BOOL GetBuildFlag();
			LengthUnit GetPipeBore();
			PressureUnit GetPressure();
			const StdString& GetCaseRef();
			const StdString& GetDescription();
			const StdString& GetFluRef();
			const StdString& GetFunction();
			const StdString& GetIspec();
			const StdString& GetMatRef();
			const StdString& GetPspec();
			const StdString& GetPurpose();
			const StdString& GetTspec();
			TemperatureUnit GetTemperature();
			const StdString& GetPtspec();

		private:
			unsigned long m_lID;
			unsigned long m_lParentID;
			BOOL m_bShopFlag;
			BOOL m_bBuildFlag;
			double m_dPipeBore;
			double m_dPressure;
			StdString m_strCaseRef;
			StdString m_strDescription;
			StdString m_strFluRef;
			StdString m_strFunction;
			StdString m_strIspec;
			StdString m_strMatRef;
			StdString m_strPspec;
			StdString m_strPurpose;
			StdString m_strTspec;
			double m_dTemperature;
			StdString m_strPtspec;
		};
	}
}

#endif // !defined(AFX_PIPETABLERECORD_H__907DFDAE_8456_457F_B847_F32744BAF1D1__INCLUDED_)
